package lab02.test6;

/**
 * Created by dell on 2017/10/15.
 */
public class circle {

        //属性：半径、面积、周长
        double radius;
        double area;
        double perimeter;
        //行为：圆的面积与周长
        //计算面积
        double area(){return 3.14*radius*radius;}
        //计算周长
        double perimeter(){return 2*3.14*radius;}
}
